/**
	Shiokaze core libraries
	Copyright (c) 2011 Shiokaze development team

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#include <QtCore/QString>

/**
	This is a desktop controlling class. It provides simple API to manage
	desktop state, change background, etc.
*/
class Desktop {
public:

	/**
		This method will load initial config
		@brief
		Used on DE startup
	*/
	static void loadInitialConfig();

	/**
		Set desktop wallpaper
		@brief
		This method will set X11 background image and write it to the
		config file name(desktop.conf).
		@par path
		Image path. It could be selected with QFileDialog.
		@note
		This method is non-blocking and forks another process to perform this
		task.

	*/
	static void setWallpaper(const QString& path);

private:
	Desktop();
	~Desktop();
	Desktop& operator=(const Desktop&);
};
